#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int cmpchar(const void *p1, const void *p2)
{
    return *((char *)p1) - *((char *)p2);
}

int main()
{
    int n = 0;
    while (scanf("%d ", &n) != EOF)
    {
        int count = 0;
        char str[10000];
        gets(str);
        qsort(str, n, sizeof(str[0]), cmpchar);
        int *pcount = NULL;
        pcount = (int *)malloc(sizeof(int) * 26);
        for (int i = 0; i < n;i++)
        {
            *(pcount + i) = 0;
            for (int j = 0; j < n;j++)
            {
                if(*(str+j)-97==i)
                {
                    *(pcount + i)++;
                }
            }
        }
    }
    return 0;
}